package com.study.test.service.Impl;

import com.study.test.entity.User;
import com.study.test.mapper.UserMapper;
import com.study.test.service.UserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User login(String username, String password) {
        return userMapper.login(username,password);
    }

    @Override
    public boolean register(User user) {
        return userMapper.register(user);
    }
}
